
#ifndef POINT_H_
#define POINT_H_
#include "Vector.h"
#include "../interface/IdAble.h"

namespace common {
/**
 * Klasa reprezentuje punkt
 */
class Point: public Vector,public IdAble {

	//kotwica
	Vector* anchor;

public:
	Point();
	Point(int id,skreal x,skreal y);
	Point(int id,const Vector& vector);
	Vector getAnchor() const;
	Vector* getAnchorRef();
	void setAnchor(const Vector& vector);
	// resetuj wartosc kotwicy do aktulnej wartosci punktu
	void resetAnchor();

	std::string toString(void);

    friend std::istream& operator>>(std::istream& is,Point& point);

	virtual ~Point();
};

}

#endif /* POINT_H_ */
